<template>
  <div>ChildCom组件</div>
</template>

<script>
export default {
  name: 'ChildCom',
  setup () {
    const sayHi = () => {
      console.log('我是ChildCom的sayHi函数')
    }
    return { sayHi }
  }
}
</script>

<style>

</style>